<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ title }} - 微信公众号矩阵管理系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-gray-100">
    <div class="flex h-screen">
        <!-- 侧边栏 -->
        <div class="w-64 bg-gray-800 text-white">
            <div class="p-4">
                <h1 class="text-xl font-bold">公众号矩阵管理</h1>
            </div>
            <nav class="mt-4">
                <a href="/" class="block px-4 py-2 hover:bg-gray-700">首页</a>
                <a href="/accounts" class="block px-4 py-2 hover:bg-gray-700">账号列表</a>
                <a href="/browsers" class="block px-4 py-2 hover:bg-gray-700">浏览器管理</a>
                <a href="#" class="block px-4 py-2 hover:bg-gray-700">素材库</a>
                <a href="#" class="block px-4 py-2 hover:bg-gray-700">发布管理</a>
                <div class="px-4 py-2">
                    <div class="flex items-center justify-between cursor-pointer hover:bg-gray-700">
                        <span>数据源采集</span>
                        <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/>
                        </svg>
                    </div>
                    <div class="pl-4">
                        <a href="#" class="block py-2 hover:bg-gray-700">公众号采集</a>
                        <a href="#" class="block py-2 hover:bg-gray-700">AI新闻采集</a>
                        <a href="#" class="block py-2 hover:bg-gray-700">推特采集</a>
                        <a href="#" class="block py-2 hover:bg-gray-700">小红书采集</a>
                        <a href="#" class="block py-2 hover:bg-gray-700">头条采集</a>
                    </div>
                </div>
                <a href="#" class="block px-4 py-2 hover:bg-gray-700">设置</a>
            </nav>
        </div>

        <!-- 主要内容区 -->
        <div class="flex-1 overflow-auto">
            <header class="bg-white shadow">
                <div class="px-4 py-6">
                    <h2 class="text-xl font-semibold text-gray-800">{{ title }}</h2>
                </div>
            </header>
            <main class="p-6">
                {% block content %}{% endblock %}
            </main>
        </div>
    </div>
</body>
</html> 